package day5.chongwu;

import day5.chongwu.bird.Parrot;

/**
 * @author oldliu
 * @since 1.0
 */
public class PetTest6 {
    public static void main(String[] args) {
        //狗之间的比较
        Dog d1=new Dog("大黄",99,100,"田园犬");
        Dog d2=new Dog("大黄",111,20,"德国牧羊犬");
        boolean same=d1.equals(d2);
        System.out.println("这两条狗是一样的?"+same);

        Parrot p=new Parrot("大黄",88);
        System.out.println("小狗 大黄和鹦鹉小翠是一样的？"+d1.equals(p));
    }
}
